/*
 * @Author: hujunjie hujunjie@shudatech.cn
 * @Date: 2025-01-02 11:33:42
 * @LastEditors: hujunjie hujunjie@shudatech.cn
 * @LastEditTime: 2025-01-02 11:34:21
 * @FilePath: \Shuda_Pure_PC\src\api\production\pond\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from '@/utils/request'

// 查询
export function list(query) {
  return request({
    url: '/api/devices',
    method: 'get',
    params: query
  })
}
// 新增
export function add(data) {
  return request({
    url: '/api/devices',
    method: 'post',
    data: data
  })
}
// 修改
export function update(data) {
  return request({
    url: '/api/devices',
    method: 'put',
    data: data
  })
}
// 详情
export function detail(query) {
  return request({
    url: '/api/devices/' + query.id,
    method: 'get'
  })
}
// 删除
export function remove(query) {
  return request({
    url: '/api/devices/' + query.id,
    method: 'delete'
  })
}